const Mock = require('mockjs')
const { list,datalist } = Mock.mock({
    'list|20': [
        {
            title: '@ctitle(3,5)',
            word: '@cword(8,15)',
            id: '@id',
            image: '@image(100x100,@color,img)',
            'price|100-999': 1
        }
    ],
    'datalist|10': [
        {
            title: '@ctitle',
            word: '@cword(8,15)',
            id: '@id',
            'children|20': [
                {
                    title: '@ctitle',
                    word: '@cword(8,15)',
                    id: '@id',
                    image: '@image(100x100,@color,img)',
                    'price|100-999': 1
                }
            ]
        }
    ]
})
module.exports = { list,datalist }